<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        .active {
            width: 100px;
            height: 100px;
            background: green;
        }

        .text-danger {
            background: red;
        }
    </style>
</head>
<body>
<div id="app">
    <div class="static" v-bind:class="active:isActive,'text-danger':hasError"></div>
</div>

</body>
</html>
<script src="js/vue.js" language="JavaScript"></script>
<script>
    new Vue({
        el: '#app',
        data: {
            isActive: true,
            hasError: true
        }
    })


</script>